public class Test1 {
    public static void main(String[] args) {
        B b = new B() ;
        A a = null ;
        a = b ;

        b.m = 1 ;

        System.out.println(b.m);

    }
}

class  A{
    int m ;
}
class B extends A{

    double m ;


}
